import os
from network import sender

_base_dir = os.path.dirname(os.path.abspath(__file__)) + "/../../"

def transfer_128():
    path = _base_dir + "data/client"
    to = "server/t0_en"
    for i in range(128):
        filename = path+"/t0_en/" + str(i+1) + ".bin"
        sender.send_file(filename, to=to)
        print("send file:", filename)
    to = "server/t1_en"

    for i in range(128):
        filename = path+"/t1_en/" + str(i+1) + ".bin"
        sender.send_file(filename, to=to)
        print("send file:", filename)
